package com.zt.action.base;

import java.util.Map;

import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

public class BaseAction implements RequestAware,
SessionAware{
	
	public static String SUCCESS="success";
	
	// 注入 session request
	@SuppressWarnings("unchecked")
	private Map session;
	@SuppressWarnings("unchecked")
	private Map request;
	
	// getters and setters
	@SuppressWarnings("unchecked")
	public Map getSession() {
		return session;
	}

	@SuppressWarnings("unchecked")
	public void setSession(Map session) {
		this.session = session;
	}

	@SuppressWarnings("unchecked")
	public Map getRequest() {
		return request;
	}

	@SuppressWarnings("unchecked")
	public void setRequest(Map request) {
		this.request = request;
	}

}
